fork download
  1. <?php
  2.  
  3. $username = 'turgay.yilmaz';
  4. $password = '8749569iO!';
  5. $registryCode = '16342458';
  6. $url = "https://a...content-available-to-author-only...k.ee/?registry_code=$registryCode";
  7.  
  8. $ch = curl_init();
  9. curl_setopt($ch, CURLOPT_URL, $url);
  10. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  11. curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
  12. curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
  13.  
  14. $response = curl_exec($ch);
  15.  
  16. if (curl_errno($ch)) {
  17. echo 'Error:' . curl_error($ch);
  18. } else {
  19. $responseData = json_decode($response, true);
  20. print_r($responseData);
  21. }
  22.  
  23. ?>
  24.  
Success #stdin #stdout 0.03s 26592KB
stdin
Standard input is empty
stdout
Error:Could not resolve host: ariregxmlv6.rik.ee